home *** CD-ROM | disk | FTP | other *** search
- Path: news.genie.net!usenet
- From: i.einman@genie.com (IAN J. EINMAN)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: My Avail allocates 400 bytes! Help!
- Date: 27 Jan 1996 21:58:26 GMT
- Organization: via GEnie Services (1-800-638-9636 or info@genie.com)
- Sender: i.einman@genie.com (IAN J. EINMAN)
- Message-ID: <4ee762$beb@rock101.genie.net>
- NNTP-Posting-Host: rock103.is.ge.com
-
- Are you running KingCOn or something similar?
-
- The memory is not being used by Avail. It is being used by the review/history
- buffer of the shell, and is not being eaten.
-
- Make a script that executes "Avail >NIL:" 10000 times, it will not eat 4 megs of ram.
- Try it...
-
- first:
- SetEnv count 10000
-
- then a script
-
- T:TestScript
- ------------
-
- Avail >NIL: FLUSH
- Eval >ENV:Count2 $count - 1
- Delete >NIL: ENV:Count
- Rename >NIL: ENV:Count2 ENV:Count
- If $count eq "0"
- Quit
- Else
- Execute T:TestScript
- EndIf
-
- This will eat a LOT of ram while running since it's recursive, you
- could use a Skip/Lab command instead. But my point is this will use a LOT of
- RAM, but after the whole thing is done... you'll get it back. It's not gone.
-
-